package replica;


public class PlayerClientCreateThread implements Runnable{

	private PlayerClient playerClient;
	
	private String firstName;
	
	private String lastName;
	
	private int age;
	
	private String userName;
	
	private String password;
	
	private String clientIpAddress;
	
	private String result;
	
	public PlayerClientCreateThread(PlayerClient playerClient, String firstName, String lastName, int age, String userName, String password, 
			String clientIpAddress){
		this.playerClient = playerClient;
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.userName = userName;
		this.password = password;
		this.clientIpAddress = clientIpAddress;
	}
	
	@Override
	public void run() {
		result = playerClient.createPlayer(firstName, lastName, age, userName, password, clientIpAddress);
	}

	public String getResult(){
		return result;
	}

}
